(:
	add anchors to a display file that doesn't have any
 :)

import module namespace
    jj = "http://kumquat.emse.fr/utilitaires"
    at "jjutils.xq" ;
<display>{
let $t := $arguments[1]
let $duration := xs:integer($arguments[2])
for $it at $p in doc($arguments[1])/display/item
return
<item>{
	<info name="time"><time><date>{ $it/info[@name="time"]/time/date/text() }</date><duration>{ $duration*1000 }</duration></time></info>,
  for $in in $it/info[fn:not(@name = ("time","Time","begin","end"))]
  return
        $in
}</item>
}</display>